home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 63 6c 61 72 6b |Path: ne|ws.clark|
|00000010| 2e 6e 65 74 21 6e 6f 74 | 2d 66 6f 72 2d 6d 61 69 |.net!not|-for-mai|
|00000020| 6c 0a 46 72 6f 6d 3a 20 | 67 75 73 74 79 40 63 6c |l.From: |gusty@cl|
|00000030| 61 72 6b 2e 6e 65 74 20 | 28 48 61 72 6c 61 6e 20 |ark.net |(Harlan |
|00000040| 4d 65 73 73 69 6e 67 65 | 72 29 0a 4e 65 77 73 67 |Messinge|r).Newsg|
|00000050| 72 6f 75 70 73 3a 20 63 | 6f 6d 70 2e 6c 61 6e 67 |roups: c|omp.lang|
|00000060| 2e 6a 61 76 61 2c 63 6f | 6d 70 2e 6c 61 6e 67 2e |.java,co|mp.lang.|
|00000070| 63 2c 63 6f 6d 70 2e 6c | 61 6e 67 2e 63 2b 2b 0a |c,comp.l|ang.c++.|
|00000080| 53 75 62 6a 65 63 74 3a | 20 52 65 3a 20 43 6f 72 |Subject:| Re: Cor|
|00000090| 72 65 63 74 20 6d 6f 64 | 2f 72 65 6d 20 28 77 61 |rect mod|/rem (wa|
|000000a0| 73 3a 20 50 72 6f 62 6c | 65 6d 20 77 69 74 68 20 |s: Probl|em with |
|000000b0| 25 20 28 72 65 6d 61 69 | 6e 64 65 72 29 20 6f 70 |% (remai|nder) op|
|000000c0| 65 72 61 74 6f 72 0a 46 | 6f 6c 6c 6f 77 75 70 2d |erator.F|ollowup-|
|000000d0| 54 6f 3a 20 63 6f 6d 70 | 2e 6c 61 6e 67 2e 6a 61 |To: comp|.lang.ja|
|000000e0| 76 61 2c 63 6f 6d 70 2e | 6c 61 6e 67 2e 63 2c 63 |va,comp.|lang.c,c|
|000000f0| 6f 6d 70 2e 6c 61 6e 67 | 2e 63 2b 2b 0a 44 61 74 |omp.lang|.c++.Dat|
|00000100| 65 3a 20 32 32 20 4a 61 | 6e 20 31 39 39 36 20 32 |e: 22 Ja|n 1996 2|
|00000110| 30 3a 34 37 3a 35 30 20 | 47 4d 54 0a 4f 72 67 61 |0:47:50 |GMT.Orga|
|00000120| 6e 69 7a 61 74 69 6f 6e | 3a 20 43 6c 61 72 6b 20 |nization|: Clark |
|00000130| 49 6e 74 65 72 6e 65 74 | 20 53 65 72 76 69 63 65 |Internet| Service|
|00000140| 73 2c 20 49 6e 63 2e 2c | 20 45 6c 6c 69 63 6f 74 |s, Inc.,| Ellicot|
|00000150| 74 20 43 69 74 79 2c 20 | 4d 44 20 55 53 41 0a 4d |t City, |MD USA.M|
|00000160| 65 73 73 61 67 65 2d 49 | 44 3a 20 3c 34 65 30 74 |essage-I|D: <4e0t|
|00000170| 35 6d 24 73 63 69 40 63 | 6c 61 72 6b 6e 65 74 2e |5m$sci@c|larknet.|
|00000180| 63 6c 61 72 6b 2e 6e 65 | 74 3e 0a 52 65 66 65 72 |clark.ne|t>.Refer|
|00000190| 65 6e 63 65 73 3a 20 3c | 34 64 63 38 36 73 24 67 |ences: <|4dc86s$g|
|000001a0| 68 61 40 6e 65 77 73 2e | 78 73 34 61 6c 6c 2e 6e |ha@news.|xs4all.n|
|000001b0| 6c 3e 20 3c 34 64 38 68 | 6e 64 24 37 34 68 40 6e |l> <4d8h|nd$74h@n|
|000001c0| 65 77 73 2e 78 73 34 61 | 6c 6c 2e 6e 6c 3e 20 3c |ews.xs4a|ll.nl> <|
|000001d0| 34 34 33 33 32 32 35 38 | 37 77 6e 72 40 61 6c 6d |44332258|7wnr@alm|
|000001e0| 69 64 65 2e 64 65 6d 6f | 6e 2e 63 6f 2e 75 6b 3e |ide.demo|n.co.uk>|
|000001f0| 20 3c 31 34 32 30 39 31 | 31 34 39 77 6e 72 40 61 | <142091|149wnr@a|
|00000200| 6c 6d 69 64 65 2e 64 65 | 6d 6f 6e 2e 63 6f 2e 75 |lmide.de|mon.co.u|
|00000210| 6b 3e 20 3c 34 64 67 75 | 63 69 24 6c 65 33 40 6e |k> <4dgu|ci$le3@n|
|00000220| 65 77 73 2e 6f 78 2e 61 | 63 2e 75 6b 3e 20 3c 68 |ews.ox.a|c.uk> <h|
|00000230| 62 61 6b 65 72 2d 32 32 | 30 31 39 36 31 30 32 32 |baker-22|01961022|
|00000240| 33 38 30 30 30 31 40 31 | 30 2e 30 2e 32 2e 31 35 |380001@1|0.0.2.15|
|00000250| 3e 0a 4e 4e 54 50 2d 50 | 6f 73 74 69 6e 67 2d 48 |>.NNTP-P|osting-H|
|00000260| 6f 73 74 3a 20 65 78 70 | 6c 6f 72 65 72 2e 63 6c |ost: exp|lorer.cl|
|00000270| 61 72 6b 2e 6e 65 74 0a | 4d 69 6d 65 2d 56 65 72 |ark.net.|Mime-Ver|
|00000280| 73 69 6f 6e 3a 20 31 2e | 30 0a 43 6f 6e 74 65 6e |sion: 1.|0.Conten|
|00000290| 74 2d 54 79 70 65 3a 20 | 54 45 58 54 2f 50 4c 41 |t-Type: |TEXT/PLA|
|000002a0| 49 4e 3b 20 63 68 61 72 | 73 65 74 3d 49 53 4f 2d |IN; char|set=ISO-|
|000002b0| 38 38 35 39 2d 31 0a 43 | 6f 6e 74 65 6e 74 2d 54 |8859-1.C|ontent-T|
|000002c0| 72 61 6e 73 66 65 72 2d | 45 6e 63 6f 64 69 6e 67 |ransfer-|Encoding|
|000002d0| 3a 20 38 62 69 74 0a 0a | 48 65 6e 72 79 20 42 61 |: 8bit..|Henry Ba|
|000002e0| 6b 65 72 20 28 68 62 61 | 6b 65 72 40 6e 65 74 63 |ker (hba|ker@netc|
|000002f0| 6f 6d 2e 63 6f 6d 29 20 | 77 72 6f 74 65 3a 0a 3a |om.com) |wrote:.:|
|00000300| 20 54 6f 20 73 75 6d 6d | 61 72 69 7a 65 2c 20 74 | To summ|arize, t|
|00000310| 68 65 20 27 63 6f 72 72 | 65 63 74 27 20 6d 6f 64 |he 'corr|ect' mod|
|00000320| 20 69 73 20 6f 6e 65 20 | 74 68 61 74 20 70 72 6f | is one |that pro|
|00000330| 64 75 63 65 73 20 72 65 | 6d 61 69 6e 64 65 72 73 |duces re|mainders|
|00000340| 20 74 68 61 74 20 66 6f | 6c 6c 6f 77 0a 3a 20 74 | that fo|llow.: t|
|00000350| 68 65 20 5f 64 69 76 69 | 73 6f 72 5f 2c 20 61 6e |he _divi|sor_, an|
|00000360| 64 20 74 68 65 72 65 66 | 6f 72 65 20 74 68 65 20 |d theref|ore the |
|00000370| 27 63 6f 72 72 65 63 74 | 27 20 71 75 6f 74 69 65 |'correct|' quotie|
|00000380| 6e 74 20 69 73 20 74 68 | 65 20 5f 66 6c 6f 6f 72 |nt is th|e _floor|
|00000390| 5f 20 66 75 6e 63 74 69 | 6f 6e 2e 0a 0a 49 6e 20 |_ functi|on...In |
|000003a0| 6f 74 68 65 72 20 77 6f | 72 64 73 2c 20 63 6f 6d |other wo|rds, com|
|000003b0| 70 75 74 65 72 73 20 73 | 68 6f 75 6c 64 20 62 65 |puters s|hould be|
|000003c0| 20 70 72 6f 67 72 61 6d | 6d 65 64 20 74 6f 20 66 | program|med to f|
|000003d0| 6c 75 6e 6b 20 6e 75 6d | 62 65 72 20 74 68 65 6f |lunk num|ber theo|
|000003e0| 72 79 20 61 6e 64 20 0a | 67 72 6f 75 70 20 74 68 |ry and .|group th|
|000003f0| 65 6f 72 79 2c 20 6e 6f | 74 20 74 6f 20 6d 65 6e |eory, no|t to men|
|00000400| 74 69 6f 6e 20 74 72 69 | 67 6f 6e 6f 6d 65 74 72 |tion tri|gonometr|
|00000410| 79 20 28 49 27 64 20 6c | 6f 76 65 20 74 6f 20 73 |y (I'd l|ove to s|
|00000420| 65 65 20 77 68 61 74 20 | 79 6f 75 20 74 68 69 6e |ee what |you thin|
|00000430| 6b 20 0a 61 20 73 69 6e | 65 20 63 75 72 76 65 20 |k .a sin|e curve |
|00000440| 6c 6f 6f 6b 73 20 6c 69 | 6b 65 20 61 72 6f 75 6e |looks li|ke aroun|
|00000450| 64 20 74 68 65 20 76 65 | 72 74 69 63 61 6c 20 61 |d the ve|rtical a|
|00000460| 78 69 73 29 2e 20 57 6f | 6e 64 65 72 66 75 6c 2e |xis). Wo|nderful.|
|00000470| 0a 0a 54 68 65 20 70 6f | 69 6e 74 20 6f 66 20 61 |..The po|int of a|
|00000480| 72 69 74 68 6d 65 74 69 | 63 20 6d 6f 64 75 6c 6f |rithmeti|c modulo|
|00000490| 20 6e 20 69 73 20 74 68 | 61 74 20 74 68 65 20 73 | n is th|at the s|
|000004a0| 61 6d 65 20 63 79 63 6c | 65 20 6f 66 20 6e 75 6d |ame cycl|e of num|
|000004b0| 62 65 72 73 20 0a 72 65 | 70 65 61 74 73 20 61 64 |bers .re|peats ad|
|000004c0| 20 69 6e 66 69 6e 69 74 | 75 6d 20 66 72 6f 6d 20 | infinit|um from |
|000004d0| 30 20 74 6f 20 28 6e 20 | 2d 20 31 29 2e 20 49 74 |0 to (n |- 1). It|
|000004e0| 20 64 6f 65 73 6e 27 74 | 20 73 77 69 74 63 68 20 | doesn't| switch |
|000004f0| 67 65 61 72 73 20 61 74 | 20 7a 65 72 6f 2e 20 0a |gears at| zero. .|
|00000500| 41 6e 64 20 22 72 65 6d | 61 69 6e 64 65 72 22 20 |And "rem|ainder" |
|00000510| 69 73 20 64 65 66 69 6e | 65 64 20 61 73 20 74 68 |is defin|ed as th|
|00000520| 65 20 75 6e 69 71 75 65 | 20 4e 4f 4e 2d 4e 45 47 |e unique| NON-NEG|
|00000530| 41 54 49 56 45 20 6e 75 | 6d 62 65 72 20 67 72 65 |ATIVE nu|mber gre|
|00000540| 61 74 65 72 20 74 68 61 | 6e 20 0a 65 71 75 61 6c |ater tha|n .equal|
|00000550| 20 74 6f 20 30 20 62 75 | 74 20 6c 65 73 73 20 74 | to 0 bu|t less t|
|00000560| 68 61 6e 20 74 68 65 20 | 64 69 76 69 73 6f 72 20 |han the |divisor |
|00000570| 74 68 61 74 20 69 73 20 | 6c 65 66 74 20 6f 76 65 |that is |left ove|
|00000580| 72 20 77 68 65 6e 20 74 | 68 65 20 70 72 6f 64 75 |r when t|he produ|
|00000590| 63 74 20 0a 6f 66 20 74 | 68 65 20 64 69 76 69 73 |ct .of t|he divis|
|000005a0| 6f 72 20 61 6e 64 20 73 | 6f 6d 65 20 69 6e 74 65 |or and s|ome inte|
|000005b0| 67 65 72 20 28 71 75 6f | 74 69 65 6e 74 29 20 69 |ger (quo|tient) i|
|000005c0| 73 20 73 75 62 74 72 61 | 63 74 65 64 20 66 72 6f |s subtra|cted fro|
|000005d0| 6d 20 74 68 65 20 64 69 | 76 69 64 65 6e 64 2e 0a |m the di|vidend..|
|000005e0| 0a 54 68 65 73 65 20 64 | 65 66 69 6e 69 74 69 6f |.These d|efinitio|
|000005f0| 6e 73 20 6f 66 20 6d 6f | 64 75 6c 75 73 20 61 6e |ns of mo|dulus an|
|00000600| 64 20 72 65 6d 61 69 6e | 64 65 72 20 61 72 65 20 |d remain|der are |
|00000610| 77 65 6c 6c 20 66 6f 75 | 6e 64 65 64 20 61 6e 64 |well fou|nded and|
|00000620| 20 6f 6c 64 2c 20 61 6e | 64 0a 61 72 65 20 75 73 | old, an|d.are us|
|00000630| 65 66 75 6c 20 69 6e 20 | 61 20 6c 61 72 67 65 20 |eful in |a large |
|00000640| 6e 75 6d 62 65 72 20 6f | 66 20 66 69 65 6c 64 73 |number o|f fields|
|00000650| 2e 20 28 51 75 69 63 6b | 3a 20 69 66 20 74 68 65 |. (Quick|: if the|
|00000660| 72 65 20 68 61 64 20 62 | 65 65 6e 20 63 6c 6f 63 |re had b|een cloc|
|00000670| 6b 73 0a 61 73 20 77 65 | 20 6b 6e 6f 77 20 74 68 |ks.as we| know th|
|00000680| 65 6d 20 62 61 63 6b 20 | 74 68 65 6e 2c 20 77 68 |em back |then, wh|
|00000690| 61 74 20 6e 75 6d 62 65 | 72 20 77 6f 75 6c 64 20 |at numbe|r would |
|000006a0| 74 68 65 20 6c 69 74 74 | 6c 65 20 68 61 6e 64 20 |the litt|le hand |
|000006b0| 68 61 76 65 20 62 65 65 | 6e 20 6f 6e 0a 74 65 6e |have bee|n on.ten|
|000006c0| 20 6d 69 6e 75 74 65 73 | 20 62 65 66 6f 72 65 20 | minutes| before |
|000006d0| 74 68 65 20 6f 70 65 6e | 69 6e 67 20 6d 6f 6d 65 |the open|ing mome|
|000006e0| 6e 74 20 6f 66 20 4a 61 | 6e 75 61 72 79 20 31 20 |nt of Ja|nuary 1 |
|000006f0| 6f 66 20 74 68 65 20 79 | 65 61 72 20 31 3a 20 31 |of the y|ear 1: 1|
|00000700| 30 20 6f 72 0a 32 3f 29 | 20 54 68 65 73 65 20 63 |0 or.2?)| These c|
|00000710| 6f 6e 63 65 70 74 73 20 | 77 65 72 65 6e 27 74 20 |oncepts |weren't |
|00000720| 6a 75 73 74 20 66 69 72 | 73 74 20 69 6e 76 65 6e |just fir|st inven|
|00000730| 74 65 64 20 74 6f 20 6d | 61 6b 65 20 6c 69 66 65 |ted to m|ake life|
|00000740| 20 63 6f 6e 76 65 6e 69 | 65 6e 74 20 0a 66 6f 72 | conveni|ent .for|
|00000750| 20 70 72 6f 67 72 61 6d | 6d 65 72 73 2c 20 61 6e | program|mers, an|
|00000760| 64 20 74 68 65 20 73 6f | 66 74 77 61 72 65 20 69 |d the so|ftware i|
|00000770| 6e 64 75 73 74 72 79 20 | 73 68 6f 75 6c 64 6e 27 |ndustry |shouldn'|
|00000780| 74 20 70 72 65 74 65 6e | 64 20 74 6f 20 6f 77 6e |t preten|d to own|
|00000790| 20 74 68 65 73 65 20 0a | 63 6f 6e 63 65 70 74 73 | these .|concepts|
|000007a0| 20 61 6e 79 20 6d 6f 72 | 65 20 74 68 61 6e 20 74 | any mor|e than t|
|000007b0| 68 65 79 20 73 68 6f 75 | 6c 64 20 65 78 70 65 63 |hey shou|ld expec|
|000007c0| 74 20 74 6f 20 75 73 65 | 20 61 20 6e 6f 6e 2d 73 |t to use| a non-s|
|000007d0| 74 61 6e 64 61 72 64 20 | 0a 64 65 66 69 6e 69 74 |tandard |.definit|
|000007e0| 69 6f 6e 20 66 6f 72 20 | 61 64 64 69 74 69 6f 6e |ion for |addition|
|000007f0| 20 6f 72 20 63 6f 73 69 | 6e 65 2e 0a 0a 43 65 72 | or cosi|ne...Cer|
|00000800| 74 61 69 6e 6c 79 20 74 | 68 65 72 65 20 61 72 65 |tainly t|here are|
|00000810| 20 6f 63 63 61 73 69 6f | 6e 73 20 77 68 65 6e 20 | occasio|ns when |
|00000820| 77 68 61 74 20 79 6f 75 | 20 77 61 6e 74 20 66 6f |what you| want fo|
|00000830| 72 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 6d 69 |r your p|rogrammi|
|00000840| 6e 67 20 0a 74 61 73 6b | 20 69 73 20 74 68 65 20 |ng .task| is the |
|00000850| 6f 74 68 65 72 20 77 61 | 79 20 61 72 6f 75 6e 64 |other wa|y around|
|00000860| 2c 20 62 75 74 20 74 68 | 61 74 20 69 73 20 61 20 |, but th|at is a |
|00000870| 64 69 66 66 65 72 65 6e | 74 20 66 75 6e 63 74 69 |differen|t functi|
|00000880| 6f 6e 2e 20 0a 0a | |on. .. | |
+--------+-------------------------+-------------------------+--------+--------+